<template>
  <div>
    <ul class="dy-list">
      <li v-for="(item,index) in dy_list.list" :key="index" @click="tdetail(item.teacher_id)">
        <img :src="item.teacher_avatar" alt />
        <div class="dy-right">
            <p>{{item.teacher_name}}</p>
            <p>{{item.introduction}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  props: ["dy_list"],
  components: {},
  mounted() {},
  methods: {
    tdetail(id){
      this.$router.push({
        path:"/tdetail",
        query:{
          id:id
        }
      })
    }
  }
};
</script>

<style scoped>
.dy-list{
    width: 100%;
    margin-bottom: 30px;
}
.dy-list>li{
    display: flex;
    background: #fff;
    width: 85%;
    margin-left: 10px;
    padding: 10px;
    /* margin-top: 10px; */
    margin: 0 auto;
    margin-bottom: 10px;
}
.dy-list>li>img{
    width: 50px;
    height: 50px;
    border-radius: 50%
}
.dy-list>li>div{
    margin-left: 10px;
}
.dy-list>li>div>p:nth-of-type(1){
    font-size: 14px;
}
.dy-list>li>div>p:nth-of-type(2){
    line-height: 50px;
    color: #b7b7b7;
}
</style>